package com.spring.xiatian.user.service.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 方式二：消费 Feign  使用spring-cloud-starter-feign 集成的api
 *
 * 调用 中心服务 中的订单服务 order
 * Created by Created by xiaoxia on 2017/11/17 0030 17:49.
 */
@FeignClient("scb-order")
public interface OrderServiceFeign {

    @RequestMapping(method = RequestMethod.GET, value = "/api/list")
    String getOrderList();

}
